<!DOCTYPE html>
<html lang="en">
<body>
	<div class=" admin-content">
		<div class="daohang">
		</div>
		<div class="admin-biaogelist">
			<div class="listbiaoti am-cf">
				<ul class="am-icon-flag on">商品列表</ul>
				<dl class="am-icon-home" style="float: right;"> 当前位置： 首页 > <a href="#">商品列表</a></dl>
				
			</div>
			<!-- <div class="am-btn-toolbars am-btn-toolbar am-kg am-cf">
				<ul>
					<li>
						<div class="am-btn-group am-btn-group-xs">
							<select data-am-selected="{btnWidth: 90, btnSize: 'sm', btnStyle: 'default'}">
								<option value="b">产品分类</option>
								<option value="o">下架</option>
							</select>
						</div>
					</li>
					<li>
						<div class="am-btn-group am-btn-group-xs">
							<select data-am-selected="{btnWidth: 90, btnSize: 'sm', btnStyle: 'default'}">
								<option value="b">产品分类</option>
								<option value="o">下架</option>
							</select>
						</div>
					</li>
					<li style="margin-right: 0;">
						<span class="tubiao am-icon-calendar"></span>
						<input type="text" class="am-form-field am-input-sm am-input-zm  am-icon-calendar" placeholder="开始日期" data-am-datepicker="{theme: 'success',}"  readonly/>
					</li>
					<li style="margin-left: -4px;">
						<span class="tubiao am-icon-calendar"></span>
						<input type="text" class="am-form-field am-input-sm am-input-zm  am-icon-calendar" placeholder="开始日期" data-am-datepicker="{theme: 'success',}"  readonly/>
					</li>
					<li style="margin-left: -10px;">
						<div class="am-btn-group am-btn-group-xs">
							<select data-am-selected="{btnWidth: 90, btnSize: 'sm', btnStyle: 'default'}">
								<option value="b">产品分类</option>
								<option value="o">下架</option>
							</select>
						</div>
					</li>
					<li><input type="text" class="am-form-field am-input-sm am-input-xm" placeholder="关键词搜索" /></li>
					<li><button type="button" class="am-btn am-radius am-btn-xs am-btn-success" style="margin-top: -1px;">搜索</button></li>
				</ul>
			</div> -->
			<form class="am-form am-g">
				<table width="100%" class="am-table am-table-bordered am-table-radius am-table-striped">
					<thead>
						<tr class="am-success">
							<th class="table-check"><input type="checkbox"></th>
							<th class="table-id">ID</th>
							<th class="table-id">图片路径</th>
							<th class="table-title">商品价格</th>
							<th class="table-type">商品名称</th>
							<th class="table-author am-hide-sm-only">商品规格</th>
							<th class="table-author am-hide-sm-only">商品内容</th>
							<th class="table-date am-hide-sm-only">所属分类</th>
						</tr>
					</thead>
					<tbody>
					<?php 
						foreach ($result as $key => $value) {
					?>
						<tr>
							<td><input type="checkbox" /></td>
							<td><?php echo $value['id']; ?></td>
							<td><?php echo $value['image_url']; ?></td>
							<td><?php echo $value['price']; ?></td>
							<td><?php echo $value['name']; ?></td>
							<td class="am-hide-sm-only"><?php echo $value['standard']; ?></td>
							<td class="am-hide-sm-only"><?php echo $value['content']; ?></td>
							<td class="am-hide-sm-only"><?php echo $value['link']; ?></td>
						</tr>
					<?php }; ?>
					</tbody>
				</table>
				<!-- <div class="am-btn-group am-btn-group-xs">
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 删除</button>
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 上架</button>
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 下架</button>
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 移动</button>
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> 新增</button>
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-save"></span> 保存</button>
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-archive"></span> 移动</button>
					<button type="button" class="am-btn am-btn-default"><span class="am-icon-trash-o"></span> 删除</button>
				</div> -->
				<ul class="am-pagination am-fr">
					<li><a href="<?php echo site_url() . '/Welcome/commodity?page=1'; ?>">«</a></li>
				<?php
					for ($i = 1; $i <= $wert; $i++) {
				?>
					
					<li class="am-active"><a href="<?php echo site_url() . '/Welcome/commodity?page=' . $i; ?>"><?php echo $i; ?></a></li>
					
				<?php
					}
				?>

					<li><a href="<?php echo site_url() . '/Welcome/commodity?page=' . $wert; ?>">»</a></li>
				</ul><hr />
				<hr />
				<p>注：.....</p>
			</form>
			<div class="foods">
				<ul>
					版权所有@2015. 模板收集自 <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> -  More Templates<a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a>
				</ul>
				<dl>
					<a href="" title="返回头部" class="am-icon-btn am-icon-arrow-up"></a>
				</dl>
			</div>
		</div>
	</div>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/polyfill/rem.min.js"></script>
<script src="assets/js/polyfill/respond.min.js"></script>
<script src="assets/js/amazeui.legacy.js"></script>
<![endif]--> 

<!--[if (gte IE 9)|!(IE)]><!--> 
<script src="<?php echo base_url() . 'public/' ?>assets/js/amazeui.min.js"></script>
<!--<![endif]-->

</body>
</html>